﻿using System.Collections.Generic;
using System.Web.Mvc;
using User.EF.Model;
using User.Global.Resources;

namespace User.Web.Models.Helper
{
    public class TitleHelper
    {
        /// <summary>
        /// Die Title ermitteln die in der Anwendung zur Verfügung stehen.
        /// </summary>
        public SelectList GetTitles()
        {
            List<SelectListItem> items = new List<SelectListItem>();
            items.Add(new SelectListItem { Value = ETitle.Frau.ToString(), Text = InputFieldNames.TitleWomen });
            items.Add(new SelectListItem { Value = ETitle.Herr.ToString(), Text = InputFieldNames.TitleMen });
            return new SelectList(items, "Value", "Text");
        }
    }
}
